import { getUUID } from "./utils.js"


export const dataA = {
  // processId: undefined,
  // processKey: getUUID(6),
  // processName: "",
  // remark: null,
  // version: 1,
  // categoryId: 5,
  // codeFormatId: 0,
  // disabled: false,
  nodeList: [
    {
      nodeKey: "1",
      nodeType: 0,
      nodeName: "发起节点",
      left: "379px",
      top: "95px",
      ico: "up-User",
      config: {
        form: {
          versionId: '',
          formId: null,
          formName: null,
          column: [
            {
              columnId: "1",
              columnName: "字段1",
              // viewType: "001,011,000",
              visibleValue: false,
              editValue: false,
              bulletinValue: true
            },
            {
              columnId: "2",
              columnName: "字段2",
              // viewType: "001,100,111",
              visibleValue: false,
              editValue: true,
              bulletinValue: false
            },
            {
              columnId: "3",
              columnName: "字段3",
              // viewType: "001,011,000",
              visibleValue: false,
              editValue: false,
              bulletinValue: true
            }
          ]
        },
        button: [
          {
            buttonId: "commitSource",
            buttonName: "提交领料",
            buttonType: "commitSource",
            enabled: true,
            param: {
              type: "commitSource"
            }
          },
          {
            buttonId: "commitTable",
            buttonName: "提交领表",
            buttonType: "commitTable",
            enabled: true,
            param: {
              type: "commitTable"
            }
          }
        ],
        operationButton: [
          {
            buttonId: "start",
            buttonName: "提交领表",
            buttonType: "start",
            enabled: true,
            param: {
              type: "start"
            }
          },
          {
            buttonId: "save",
            buttonName: "暂存",
            buttonType: "save",
            enabled: true,
            param: {
              type: "save"
            }
          }
        ],
        printButton: [
          {
            buttonId: "printNotiForm",
            buttonName: "打印通知单",
            buttonType: "printNotiForm",
            enabled: true,
            param: {
              type: "printNotiForm",
              value: null
            }
          }
        ],
        copySend: {
          enabled: true,
          copySendType: 0,
          copySendId: 1
        },
        label: {
          enabled: true,
          type: "0",
          value: null
        }
      },
      show: true,
      id: "1",
      name: "发起节点",
      type: "发起节点"
    },
    {
      nodeKey: "2",
      nodeType: 1,
      nodeName: "结束节点",
      left: "379px",
      top: "350px",
      priority: 1,
      ico: "up-User",
      show: true,
      id: "111",
      name: "结束节点",
      type: "结束事件"
    },
  ],
  lineList: [
    {
      form: "1",
      fromKey: "1",
      to: "2",
      toKey: "2"
    }
  ],
  // 流程属性
  processConfigList: {
    processReminder: [
      {
        label: "短信",
        value: true,
        type: "switch"
      },
      {
        label: "钉钉",
        value: true,
        type: "switch"
      },
      {
        label: "企业微信",
        value: true,
        type: "switch"
      },
      {
        label: "站内消息",
        value: false,
        type: "switch"
      }
    ],
    name: [],
    numberSet: [
      {
        label: "复杂规则",
        value: "已设置规则",
        remove: true
      },
      {
        label: "固定字符",
        value: null,
        remove: true
      },
      {
        label: "创建日期",
        value: "yyyymmdd"
      },
      {
        text: "计数",
        autoNumberValue: "0-999",
        numberValue: null
      }
    ],
    titleSet: [
      {
        label: "固定字符",
        value: null
      },
      {
        label: "表单字段",
        value: null
      }
    ]
  }
}